package echat.future.cn.echat.my.bean;

import java.util.Observable;

/**
 * Created by 86936 on 2018/8/9.
 *
 * @QQ 869360026
 */
public class UserBean extends Observable{


    /**
     * 普通用户
     */
    public static int TYPE_ORIDINARY = 1;

    /**
     * 正式用户
     */
    public static int TYPE_FORMA = 2;


    /**
     * 主播
     */
    public static int TYPE_ANCHOR=3;

    /**
     * 用户名
     */
    private String username;

    /**
     * 用户签名
     */
    private String sign;

    /**
     * 等级
     */
    private String level;

    /**
     * 价格
     */
    private String price;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 用户类型
     *
     */
    private int user_role;

    /**
     * 粉丝数量
     */
    private String fans;

    /**
     * E币数
     */
    private int e_money;
    private int first_free;
    /**
     * 关注
     */
    private int focus;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getUser_role() {
        return user_role;
    }

    public void setUser_role(int user_role) {
        this.user_role = user_role;
    }

    public String getFans() {
        return fans;
    }

    public void setFans(String fans) {
        this.fans = fans;
    }

    public int getE_money() {
        if(e_money<0){
            return 0;
        }
        return e_money;
    }

    public void setE_money(int e_money) {
        this.e_money = e_money;
    }

    public int getFirst_free() {
        return first_free;
    }

    public void setFirst_free(int first_free) {
        this.first_free = first_free;
    }

    public int getFocus() {
        return focus;
    }

    public void setFocus(int focus) {
        this.focus = focus;
    }
}
